package com.chianghao.qyt.controller.manage_page;

import com.chianghao.frame.core.auth.whilte_list.AuthenticationWhitelist;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping
public class CommonController {


    /**
     * 登录
     * @return
     */
    @GetMapping("login.html")
    @AuthenticationWhitelist
    public String login(){
        return "login";
    }


    @GetMapping("error/401.html")
    @AuthenticationWhitelist
    public String error401(){
        return "error/401";
    }


    /**
     * 注册
     * @return
     */
    @GetMapping("register.html")
    @AuthenticationWhitelist
    public String register(){
        return "register";
    }


    /**
     * 忘记密码
     * @return
     */
    @GetMapping("forgot-pws.html")
    @AuthenticationWhitelist
    public String forgotPws(){
        return "forgot-pws";
    }





}
